package cn.tedu.douguo.user.service;

import cn.tedu.douguo.user.pojo.dto.NewRecipeBasicDTO;
import cn.tedu.douguo.user.pojo.dto.NewRecipeDTO;
import cn.tedu.douguo.user.pojo.dto.NewRecipeIngDTO;
import cn.tedu.douguo.user.pojo.dto.NewRecipeStepDTO;
import cn.tedu.douguo.user.pojo.vo.*;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface RecipeService {
//    新增一个菜谱
    void insertRecipe(NewRecipeDTO newRecipeDTO);


    // 获取单个食材表
    List<String> getIngredientByRecipeId(Long recipeId);


    //获取8个菜谱
    List<RecipeListVO> listBySort();

    //获取all菜谱
    List<RecipeListVO> listAll();
    List<RecipeListVO> listByKeyword(String keyword);

    RecipeStepVO getStepByRecipeId(Long recipeId);

    RecipeDetailsVO getDetailsByRecipeId(Long recipeId);
}
